package cn.coastalinfo.project.drools.domain.bo;

import cn.coastalinfo.common.core.validate.AddGroup;
import cn.coastalinfo.common.core.validate.EditGroup;
import cn.coastalinfo.framework.web.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;


/**
 * 规则业务对象
 *
 * @author hadge
 * @date 2024-06-07
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class RuleBo extends BaseEntity {

    /**
     * $column.columnComment
     */

    private Long id;

    /**
     * 规则名称
     */
    @ApiModelProperty("规则唯一编码")
    @NotBlank(message = "规则唯一编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 规则
     */

    private String content;

    @ApiModelProperty("名称")
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    private String thenSet;
}
